<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>舒步优选</title>
    <style>
        .totop-box {
            /* display: none; */
            position: fixed;
            width: 50px;
            height: auto;
            right: 20px;
            top: 185px;
        }

        .totop-box-logobox {
            width: 35px;
            height: 20px;
            /* 图片展示的宽高 */
            margin: 0 7px;
            position: relative;
            overflow: hidden;
            /* 图片多余部分隐藏 */
        }

        .totop-box-logo {
            width: 35px;
            height: 35px;
            /* 图片实际的宽高 */
            position: absolute;
            /* 绝对定位 */
        }

        .totop-box-logo-img {
            width: 35px;
            height: 35px;
        }

        .totop {
            margin-top: 3px;
            width: 50px;
            height: 350px;
            background: #fff;
            vertical-align: middle;
            text-align: center;
            border-radius: 8px;
        }

        .totop li {
            float: left;
            font-size: 12px;
            cursor: pointer;
        }

        .totop a {
            text-decoration: none;
        }

        .totop a:focus {
            color: #fff;
        }

        .top_text {
            position: relative;
            display: block;
            width: 50px;
            height: 50px;
            padding: 7px 8px 0;
        }

        .top_text:before {
            /* 伪元素绘制部分border */
            content: '';
            position: absolute;
            top: 0px;
            width: 50%;
            border-bottom: 1px solid rgb(224, 223, 223);
            box-sizing: border-box;
        }

        .top_text_one:before {
            content: '';
            border: 0;
        }

        .top_text_six:before {
            content: '';
            left: 12.5px;
        }

        .top_text:hover {
            color: #fff;
            font-weight: 700;
            background-color: #F40;
            background-image: linear-gradient(135deg, #ff971b, #ff5000);
        }

        .top_text:hover::before {
            content: none;
        }

        .totop>.top_text:focus {
            content: none;
            outline: none;
        }

        .top_text_one {
            padding-top: 10px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            color: red;
        }

        .top_text_two {
            color: red;
        }

        .top_text_three {
            color: rgb(107, 87, 224);
        }

        .top_text_four {
            color: rgb(157, 199, 118);
        }

        .top_text_five {
            color: orange;
        }

        .top_text_six {
            color: black;
        }

        .top_text_seven {
            padding-top: 15px;
            color: black;
        }

        .top_text_eight {
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            color: black;
            border: 0;
        }

        .top_selected {
            color: #fff;
            font-weight: 700;
            background-color: #F40;
            background-image: linear-gradient(135deg, #ff971b, #ff5000);
        }

        .totop-cart {
            display: none;
            position: fixed;
            right: 20px;
            bottom: 80px;
            width: 50px;
            height: 100px;
            /* border: 1px solid; */
            background-color: transparent;
            cursor: pointer;
        }

        .totop-cart .totop-cart-img {
            position: absolute;
            width: 45px;
            height: 45px;
            margin-top: 50px;
        }

        .totop-cart .to-cart-move-img {
            display: none;
            position: absolute;
            width: 45px;
            height: 45px;
            left: 4px;
        }
        /* 基本轮播容器样式 */
        .carousel {
            position: relative;
            width: 50%;
            max-width: 1000px;
            margin: 0 auto;
            overflow: hidden;
            border: 1px solid #ccc;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }

        /* 轮播内容容器 */
        .carousel .slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        /* 单个轮播项 */
        .carousel .slide {
            min-width: 100%;
            flex: 0 0 auto;
            transition: transform 0.5s ease-in-out;
        }

        /* 图片样式 */
        .carousel img {
            width: 50%;
            display: block
        }

        /* 轮播控制按钮 */
        .carousel .controls {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            box-sizing: border-box;
        }

        /* 控制按钮样式 */
        .carousel .controls button {
            background: none;
            border: none;
            cursor: pointer;
            outline: none;
            font-size: 24px;
            color: #333;
        }
    </style>
</head>
<body>

<div class="carousel">
    <div class="slides">
        <div class="slide">
            <img src="/boot/imgs/V1.png">
        </div>
        <div class="slide">
            <img src="/boot/imgs/q12.webp">
        </div>
        <div class="slide">
            <img src="/boot/imgs/V4.png">
        </div>
        <div class="slide">
            <img src="/boot/imgs/V3.png">
        </div>
    </div>
    <div class="controls">
        <button onclick="prevSlide()">&#10094;</button>
        <button onclick="nextSlide()">&#10095;</button>
    </div>
</div>

<div class="totop-box">
    <div class="totop-box-logobox">
        <div class="totop-box-logo">
            <img class="totop-box-logo-img" src="/boot/imgs/taobao.png">
        </div>
    </div>

    <div class="totop">
        <li class="top_text top_text_one top_selected">精选栏目</li>
        <!-- <a href="#" class="top_text top_text_two">占个坑位</a> -->
        <li class="top_text top_text_three">爱逛好货</li>
        <li class="top_text top_text_four">创意好物</li>
        <li class="top_text top_text_five">猜你喜欢</li>
        <li class="top_text top_text_six">
            <div>^</div>顶部
        </li>
        <li class="top_text top_text_seven">反馈</li>
        <li><a href="#" class="top_text top_text_eight">暴恐举报</a></li>
    </div>
</div>


<script>
    let slideIndex = 0;
    const slides = document.querySelectorAll('.slide');

    function showSlide(index) {
        slides.forEach((slide, i) => {
            slide.style.transform = `translateX(${(i - index) * 100}%)`;
        });
        slideIndex = index;
    }

    function nextSlide() {
        if (slideIndex < slides.length - 1) {
            showSlide(slideIndex + 1);
        } else {
            showSlide(0);
        }
    }

    function prevSlide() {
        if (slideIndex > 0) {
            showSlide(slideIndex - 1);
        } else {
            showSlide(slides.length - 1);
        }
    }

    showSlide(slideIndex);
</script>
</body>
</html>